{% include "../header.html" %}
{% include "left.html" %}

<form action="add" method="get">
	<h1>增加分类</h1>
	分类名字
	<input type="text" name="cname" size="30">
	<input type="submit" value="添加" />
</form>

<h1>分类信息</h1>
<table width="100%" bgcolor="#EEEEEE"  border="0" cellspacing="1" cellpadding="1">
	<tr>
		<th>标题</th>
		<th>日志数量</th>
		<th>操作</th>
	</tr>
	{% for item in results %}
	<tr>
		<td>{{item.cname}}</td>
		<td>{{item.blogs}}</td>
		<td><a href="del?id={{item.key}}" onclick="return window.confirm('确认要删除？');">删除</a>
			<!--a href="del?id={{item.key}}" onclick="return window.prompt('确认要删除？');">编辑</a-->
		</td>
	</tr>
	{% endfor %}
</table>

</div>
</div>
{% include "../footer.html" %}